//
//  HWRecyclingTableViewCell.m
//  HWanGame
//
//  Created by 陈道斌 on 2021/7/20.
//  Copyright © 2021 Chendaobin. All rights reserved.
//

#import "HWRecyclingTableViewCell.h"

@implementation HWRecyclingTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    self.beijingView.layer.cornerRadius =10;
    self.beijingView.layer.masksToBounds = YES;
    self.huishouLabel.layer.cornerRadius =2;
    self.huishouLabel.layer.masksToBounds = YES;
    self.huishouLabel.backgroundColor = RGB(69, 70, 79);
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    // Configure the view for the selected state

}

-(void)setModel:(HWhuishouModel *)model {
    
    _model = model;
    
    [self.icoiamgView sd_setImageWithURL:[NSURL URLWithString:model.icon] placeholderImage:nil];
    self.nickNameLabel.text = model.gname;
//    self.xiaohaoLabel.text = [NSString stringWithFormat:@"小号昵称：%@",model.user_name];
//    self.chongzhijingLabel.text = [NSString stringWithFormat:@"小号昵称：%@",model.pay];
//    self.huishouLabel.text = [NSString stringWithFormat:@"回收价：%@",model.paymoney];
    NSString *xiaohao =   [NSString stringWithFormat:@"小号昵称：%@",model.user_name];
    
   self.xiaohaoLabel.attributedText =   [WMUtil attributedStringWithText:xiaohao withRangText:model.user_name withColor:RGB(51, 51, 51) withFont:[UIFont fontWithName:@"Helvetica-Bold" size:13]];
    
    NSString * shifu   =  [NSString stringWithFormat:@"实际充值金额：%@",model.pay];
    
    self.chongzhijingLabel.attributedText =   [WMUtil attributedStringWithText:shifu withRangText:model.pay withColor:RGB(51, 51, 51) withFont:[UIFont fontWithName:@"Helvetica-Bold" size:13]];
    
    NSString *huishou   =  [NSString stringWithFormat:@"回收价：%@",model.paymoney];
    self.huishouLabel.attributedText =   [WMUtil attributedStringWithText:huishou withRangText:model.paymoney withColor:RGB(255 , 255, 255) withFont:[UIFont systemFontOfSize:15]];
    
}

@end
